package com.yao.yaoojcodesandbox.security;

import java.security.Permission;

/**
 * 默认安全管理器
 *
 */
public class DefaultSecurityManager extends SecurityManager{

    /**
     * 检测程序是否可以通过所有异常
     * @param perm   the requested permission.
     */
    @Override
    public void checkPermission(Permission perm) {
        System.out.println("默认不做任何限制");
        System.out.println(perm);
        super.checkPermission(perm);
    }
}
